package com;

import java.util.List;

public class Japanese implements Person{
    private String name;
    private int age;
    private List<Person> list;

    public Japanese(){
        System.out.println("jap空参");
    }
    @Override
    public String toString() {
        return "Japanese{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", list=" + list +
                '}';
    }

    public Japanese(String name, int age, List<Person> list) {
        this.name = name;
        this.age = age;
        this.list = list;
        System.out.println("jap全参");
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public List<Person> getList() {
        return list;
    }

    public void setList(List<Person> list) {
        this.list = list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void eat(){
       System.out.println(2);
    }
}
